<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>
        let age = 18

        if (age >= 18) {
            console.log('18岁++')
        } else {
            console.log('18--')
        }

        //switch语句
        week = 51

        switch (week) {
            case 1:
                console.log('hi 星期一');
                break;
            case 2:
                console.log('hi 星期二');
                break;
            case 3:
                console.log('hi 星期三');
                break;
            case 4:
                console.log('hi 星期四');
                break;
            case 5:
                console.log('hi 星期五');
                break;
            case 6:
                console.log('hi 星期六');
                break;
            default:
                console.log('输入错误')
        }


    </script>

</head>
<body>

</body>
</html>